package com.study.prop.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.study.prop.beans.ApplicationProperty;
import com.study.prop.beans.DeveloperProperty;

import cn.hutool.core.lang.Dict;

@RestController
public class PropController {

	@Autowired
	private ApplicationProperty applicationProperty;
	
	@Autowired
	private DeveloperProperty developerProperty;
	
	@GetMapping("/property")
	public Dict index() {
		return Dict.create().set("applicationProperty", applicationProperty).set("developerProperty", developerProperty);
	}
}
